# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=py3-mopidy-jellyfin
_pyname=${pkgname#py3-}
pkgver=1.0.4
pkgrel=3
pkgdesc="Mopidy extension for Jellyfin"
url="https://github.com/jellyfin/mopidy-jellyfin"
arch="noarch"
license="Apache-2.0"
depends="
	python3
	mopidy
	py3-pykka
	py3-requests
	py3-unidecode
	py3-websocket-client
	"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="$_pyname-$pkgver.tar.gz::https://github.com/jellyfin/mopidy-jellyfin/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
# AttributeError: <class 'mopidy_jellyfin.remote.JellyfinHandler'> does not have the attribute '_get_token'
options="!check"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
e78d61ab1c4029fcc472a55c30eb4f75d18427d5ca5759ea03bb1dcb6bf9626570c5e2a84f7727ec59be07dd5ce78c63228c08524e703042950f087ae3878823  mopidy-jellyfin-1.0.4.tar.gz
"
